﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.postgresql
{
	// Token: 0x02000124 RID: 292
	public class TGetDiagStmt : TCustomSqlStatement
	{
		// Token: 0x06000965 RID: 2405 RVA: 0x0030349C File Offset: 0x0030169C
		public TGetDiagStmt() : this(EDbVendor.dbvpostgresql)
		{
		}

		// Token: 0x06000966 RID: 2406 RVA: 0x003034A6 File Offset: 0x003016A6
		public TGetDiagStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstpostgresqlgetdiag;
		}

		// Token: 0x06000967 RID: 2407 RVA: 0x003034BA File Offset: 0x003016BA
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			return 0;
		}

		// Token: 0x06000968 RID: 2408 RVA: 0x003034CF File Offset: 0x003016CF
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06000969 RID: 2409 RVA: 0x003034DF File Offset: 0x003016DF
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}
	}
}
